package com.xjh.him.core.netty.codec;


import com.alibaba.fastjson.JSON;

public class Packet {
    byte command;
    String data;

    public Packet(byte command, Object obj) {
        this.command = command;
        this.data = JSON.toJSONString(obj);
    }

    public Packet() {
    }

    public byte getCommand() {
        return command;
    }

    public void setCommand(byte command) {
        this.command = command;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
